/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package components;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 *
 * @author Sonia Tan
 */
public class Image extends JLabel {

    public Image(String image, int width, int height){

        setIcon(new ImageIcon(getClass().getResource("/images/"+image)));
        setSize(width,height);


    }


}
